package com.example.sequence.selfLinkedList;


import com.example.sequence.pojo.User;

public class SequenceTest {
    public static void main(String[] args) {

        SequenceList<User> sequenceList=new SequenceList<User>();
        User user=new User();
        user.setUid(1);
        user.setUname("张三");
        user.setGender("男");

        User user1=new User();
        user1.setUid(2);
        user1.setUname("李四");
        user1.setGender("女");

        User user2=new User();
        user2.setUid(3);
        user2.setUname("王五");
        user2.setGender("男");
//        System.out.println(user);
//        System.out.println(user1);
//        System.out.println(user2);

        sequenceList.add(user);
        sequenceList.add(user1);
        sequenceList.add(user2);

        System.out.println(sequenceList.toString());

//        SequenceList<Integer> sequenceList=new SequenceList<Integer>();
//        sequenceList.add(1);
//        sequenceList.add(2);
//        sequenceList.add(3);
//        sequenceList.add(4);
//        sequenceList.add(5);
//        System.out.println(sequenceList.toString());
    }


}
